﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="relationship.aspx.cs" Inherits="weba.relationship" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1GridView" TagPrefix="wijmo" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1TreeView" TagPrefix="wijmo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .rgt {
            float: right;
        }
        .lft {
            float: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TreeView ID="TreeView1" runat="server" CssClass="lft" Width="100px"></asp:TreeView>
        <wijmo:C1GridView ID="C1GridView1" runat="server" AutogenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" GroupAreaCaption="将这里的一列拖去与那一列分组。" LoadingText="载入中..." AllowPaging="True" OnRowDeleting="C1GridView1_RowDeleting" CssClass="rgt" style="top: 0px; left: 0px" Width="500px">
            <Columns>
                <wijmo:C1BoundField DataField="title" HeaderText="title" SortExpression="title">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="description" HeaderText="description" SortExpression="description">
                </wijmo:C1BoundField>
                <wijmo:C1BoundField DataField="price" HeaderText="price" SortExpression="price">
                </wijmo:C1BoundField>
                <wijmo:C1TemplateField>
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl='<%# "Images/"+Eval("imageUrl") %>' Width="50px" />
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="删除" />
                    </ItemTemplate>
                </wijmo:C1TemplateField>
            </Columns>
        </wijmo:C1GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mysjkConnectionString1 %>" SelectCommand="GetChildItems" SelectCommandType="StoredProcedure" DeleteCommand="delctz" DeleteCommandType="StoredProcedure">
            <DeleteParameters>
                <asp:Parameter Name="param1" Type="String" />
                <asp:Parameter Name="param2" Type="String" />
            </DeleteParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="TreeView1" Name="categoryId" PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>

    </div>
    </form>
</body>
</html>
